package com.cjb.cloudsystem.vo;

import com.cjb.common.query.Query;
import com.cjb.common.util.DateUtils;
import io.swagger.v3.oas.annotations.media.Schema;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import java.io.Serializable;
import java.util.Date;

/**
* 对象管理
*
* @author 陈锦斌 2213859123@qq.com
* @since 1.0.0 2023-10-22
*/
@Data
@Schema(description = "对象管理")
public class SysObjectVO extends Query implements Serializable {
	private static final long serialVersionUID = 1L;

	@Schema(description = "对象ID")
	private Long sysObjectId;

	@Schema(description = "存储路径")
	private String sysObjectPath;

	@Schema(description = "对象名称")
	private String sysObjectName;

	@Schema(description = "对象组织")
	private String sysOrgId;

	@Schema(description = "是否加密 0:是 1：否")
	private Integer isEncrytion;

	@Schema(description = "是否删除 0：正常 1：已删除")
	private Integer deleted;

	@Schema(description = "创建者")
	private String creator;

	@Schema(description = "更新者")
	private String updater;

	@Schema(description = "创建时间")
	@JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
	private Date createTime;

	@Schema(description = "更新时间")
	@JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
	private Date updateTime;

	@Schema(description = "作品ID 外键")
	private String productionId;

	/**
	 * 接受文件对象
	 */
	@Schema(description = "接受文件对象")
	private MultipartFile file;
}